import {createApp} from 'vue'
import 'vant/lib/index.css';
import App from './App.vue'
import {router} from "@/router";
import 'v3-waterfall/dist/style.css'
import V3waterfall from "v3-waterfall";
import "./utils/http";

const app = createApp(App)

import * as ElementPlusIconsVue from '@element-plus/icons-vue'
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.config.globalProperties.$socket = new WebSocket(process.env.VUE_APP_WS_HOST + '/ws')
app.use(router).
    use(V3waterfall).mount('#app')


